package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 规格列表
 * @author HJ
 * @date 2024/1/9 9:52
 */
@NoArgsConstructor
@Data
public class NormFlavorPO {

    @JsonProperty("flavors")
    private List<FlavorsDTO> flavors;

    @NoArgsConstructor
    @Data
    public static class FlavorsDTO {
        @JsonProperty("swap")
        private Integer swap;
        @JsonProperty("os-flavor-access:is_public")
        private Boolean IsPublic;// FIXME check this code
        @JsonProperty("description")
        private String description;
        @JsonProperty("vcpus")
        private Integer vcpus;
        @JsonProperty("OS-FLV-EXT-DATA:ephemeral")
        private Integer Ephemeral;// FIXME check this code
        @JsonProperty("disk")
        private Integer disk;
        @JsonProperty("rxtx_factor")
        private Float rxtxFactor;
        @JsonProperty("name")
        private String name;
        @JsonProperty("extra_specs")
        private Object extraSpecs;
        @JsonProperty("links")
        private List<LinksDTO> links;
        @JsonProperty("id")
        private String id;
        @JsonProperty("OS-FLV-DISABLED:disabled")
        private Boolean Disabled;// FIXME check this code
        @JsonProperty("ram")
        private Integer ram;

        @NoArgsConstructor
        @Data
        public static class LinksDTO {
            @JsonProperty("rel")
            private String rel;
            @JsonProperty("href")
            private String href;
        }
    }
}
